<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增排庭主')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-schedule-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">标题(排庭人员输入的标题)：</label>
                <div class="col-sm-8">
                    <textarea name="title" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主持人员(法官)：</label>
                <div class="col-sm-8">
                    <input name="moderators" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">协助人员1(书记员)：</label>
                <div class="col-sm-8">
                    <input name="helpersOne" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期地点(法庭)：</label>
                <div class="col-sm-8">
                    <input name="room" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部门：</label>
                <div class="col-sm-8">
                    <input name="department" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业务类型:1-排庭：</label>
                <div class="col-sm-8">
                    <select name="bizType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期开始时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="schedulingTimeStart" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期结束时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="schedulingTimeEnd" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时长(单位:分钟)：</label>
                <div class="col-sm-8">
                    <input name="schedulingDuration" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时间-年(2020)：</label>
                <div class="col-sm-8">
                    <input name="year" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时间-月(1)：</label>
                <div class="col-sm-8">
                    <input name="month" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时间-日(1)：</label>
                <div class="col-sm-8">
                    <input name="day" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时间-周几(5)：</label>
                <div class="col-sm-8">
                    <input name="week" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时间-开始时分(00:01)：</label>
                <div class="col-sm-8">
                    <input name="hourMinuteStart" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期时间-结束时分(00:01)：</label>
                <div class="col-sm-8">
                    <input name="hourMinuteEnd" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="schedulingStatus" value="">
                        <label th:for="schedulingStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">排期类型0-案件、1-节假日占用、2-排期地点(法庭)占用 3-主持人员(法官)占用 4-协助人员1(书记员)占用：</label>
                <div class="col-sm-8">
                    <select name="schedulingType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">占用类型 0-单次 1-每天 2-每周 3-每月：</label>
                <div class="col-sm-8">
                    <select name="occupyType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否销期：</label>
                <div class="col-sm-8">
                    <input name="destroyFlag" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">销期原因：</label>
                <div class="col-sm-8">
                    <textarea name="destroyReason" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审判长(备注字段)：</label>
                <div class="col-sm-8">
                    <input name="spz" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/schedule"
        $("#form-schedule-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-schedule-add').serialize());
            }
        }

        $("input[name='schedulingTimeStart']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='schedulingTimeEnd']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>